package common;

import java.io.Serializable;

public class MySearchElement implements Comparable, Serializable
{
	public SkillManInstance inst;
	public float affinity;
	@Override
	public int compareTo(Object obj) 
	{
		MySearchElement elm=(MySearchElement)obj;
		if( affinity>elm.affinity )
			return 1;
		else if( affinity<elm.affinity )
			return -1;
		else
			return 0;
	}
}
